import router from './index'
import NProgress from 'nprogress' //导入进度条插件
import VueCookies from 'vue-cookies' //cookies
import { useRouterInfo } from '@/pinia/router'
const vueCookies: any = VueCookies
router.beforeEach(async (to, from, next) => {
  NProgress.start()
  next()
})
// 页面跳转后
router.afterEach(() => {
  NProgress.done()
})
